home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Compute! Gazette 1994 October
/
1994-10b.d64
/
scrn cap demo
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-09-20
|
3KB
|
77 lines
0 rem copyright 1994 - compute publications intl ltd - all rights reserved
5 rem written by james t. jones
10 poke 55,0:poke 56,56:clr:poke 53280,6:poke53281,6:cs$=chr$(147):print cs$
20 rv$=chr$(18):rem demo for 'capturing' and restoring screens
30 print chr$(14)chr$(8)chr$(5):cr$=chr$(13)
40 dv=peek(186):if dv<8 then dv=8
50 poke 147,0:sys 57812"scrn tile(680).o",dv,1:sys62631
60 sys 680
70 poke 214,3:print:poke211,4:input"[196]isk drive device number (8-15)";dv$
80 dv=val(dv$):if dv$="" then end
90 gosub510 :rem gazette routine for checking disk drive
100 sys57812"italics.set",dv,0:poke780,0:poke781,0:poke782,56:sys65493
110 poke 53272,31:cr$=chr$(13):cd$=chr$(17):rem switch to italics.set font
120 sys57812"display font.o",dv,0:poke780,0:poke781,0:poke782,206:sys65493
130 gosub620:rem title screen
140 poke 147,0:sys 57812"scrn cap restr.o",dv,1:sys62631
150 sys680:printcd$cd$"[211][217][211] 52797 saves [211]creen 1."
160 printcd$"[211][217][211] 52825 restores [211]creen 1."
170 printcd$"[212]his is [211]creen 1.":sys 52797
180 poke 214,21:gosub470
190 sys 680:printcd$cd$"[211][217][211] 52853 saves [211]creen 2."
200 printcd$"[211][217][211] 52881 restores [211]creen 2."
210 printcd$"[158][212]his is [211]creen 2.":sys 52853
220 poke 214,21:gosub470
230 sys 680:printcd$cd$"[211][217][211] 52909 saves [211]creen 3."
240 printcd$"[211][217][211] 52937 restores [211]creen 3."
250 printcd$"[159][212]his is [211]creen 3.":sys 52909
260 poke 214,21:gosub470
270 sys 680:printcd$cd$"[211][217][211] 52965 saves [211]creen 4."
280 printcd$"[211][217][211] 52993 restores [211]creen 4."
290 printcd$"[212]his is [211]creen 4.":sys 52965
300 poke 214,21:gosub470
310 sys 680:printcd$cd$"[208]ress 1, 2, 3 or 4 to restore [211]creens"
320 printcd$"1, 2, 3 or 4, respectively."
330 printcd$"[208]ress [209] to exit to [194][193][211][201][195]."
340 geta$:if a$="" then340
350 on val(a$) goto380 ,410,430,450
360 if a$="q" or a$="[209]" then poke 56,160:end
370 goto340
380 sys 52825:rem restore screen 1
390 poke 214,21:gosub470
400 goto310
410 sys 52881:rem restore screen 2
420 poke 214,21:gosub470 :goto310
430 sys 52937:rem restore screen 3
440 poke 214,21:gosub470 :goto310
450 sys 52993:rem restore screen 4
460 poke 214,21:gosub470 :goto310
470 print:print rv$" press <[210][197][212][213][210][206]> to continue "
480 d$="":get d$:if d$<>cr$ then480
490 print cs$
500 return
510 close15:open 15,dv,15:close15
520 if st=0 then560
530 printcd$"[212]urn your disk drive on and press"
540 print"<[210]eturn>."
550 b$="":get b$:if b$<>cr$ then550
560 open15,dv,15,"i":input#15,er:close15
570 if er=0 then return
580 printcd$"[208]ut a diskette in your disk drive"
590 print"and press <[210]eturn>."
600 b$="":get b$:if b$<>cr$ then600
610 goto560
620 data "[199]azette presents ","[193] [196]emonstration of a [210]outine"
630 data "to [195]apture and [210]estore","[213]p to [198]our [211]creens"
640 data "[208]ress any key to continue"
650 for x=1 to 5:read au$(x):next
660 sys 680
670 sys 52736
680 poke 214,12:print:printspc(20-len(au$(1))/2)au$(1):print
690 printspc(20-len(au$(2))/2)au$(2):print
700 printspc(20-len(au$(3))/2)au$(3):print
710 printspc(20-len(au$(4))/2)au$(4)
720 poke214,22:print:printspc(20-len(au$(5))/2)au$(5)
730 get a$:if a$="" then730
740 return